package utils;

import java.util.ResourceBundle;

import javax.faces.context.FacesContext;

public class MensajeUtils {

	public static String getMensaje(String key){
		FacesContext context = FacesContext.getCurrentInstance();
		ResourceBundle bundle = context.getApplication().getResourceBundle(context, "msg");
		return bundle.getString(key);
	}
}
